from typing import Any

from fastapi import APIRouter, Depends
from requests import Session

from app.api.common import deps

router = APIRouter()



@router.post('/addclass', summary= "添加班级")
async def  addclass(
        class_info:class_schema.ClassCreate,
        db: Session = Depends(deps.get_db),
) -> Any:
    # 获取参数
    print(class_info)
    # 验证
    # 添加
    curd_cclass.create(db,class_info)
    # 返回结果
    return 'ok'













